package com.jiu345.api.pojo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * package:GoodsCategory
 * @author MrLei QQ:235921049
 * @date 2024-05-21
 * desc:商品分类
 */
@Data
@TableName("mall_goods_category")
public class GoodsCategory implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 分类id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 分类名称
     */
    private String name;

    /**
     * 图片
     */
    private String image;

    /**
     * 父分类id
     */
    private Long parentId;

    /**
     * 显示状态
     */
    private Integer status;

    /**
     * 排序
     */
    private Long sort;

    /**
     * 删除标记
     */
    private Integer isDelete;
    /*其他*/
    /*父级*/
    @TableField(exist = false)
    private Long pId;
    @TableField(exist = false)
    private String pName;
    /*子级*/
    @TableField(exist = false)
    private List<GoodsCategory> children;
    @TableField(exist = false)
    private List<Goods> goodsList;

}
